package org.example.mall.admin.model.vo.goods;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 规格分组
 *
 * @author hzq
 * @date 2022/1/26 11:38
 */
@Data
public class GroupSpecParamsVo implements Serializable {

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "分组id")
    private Integer id;

    @ApiModelProperty(value = "分组名称")
    private String name;

    @ApiModelProperty(value = "基本参数")
    private List<SpecParamsVo> genericParams;

    @ApiModelProperty(value = "特殊参数")
    private List<SpecParamsVo> specialParams;

    /**
     * 分组属性
     */
    @Data
    public static class SpecParamsVo implements Serializable {

        @ApiModelProperty(value = "分组id")
        private Integer groupId;

        @ApiModelProperty(value = "分组名称")
        private String groupName;

        @ApiModelProperty(value = "属性id")
        private Integer id;

        @ApiModelProperty(value = "属性名称")
        private String name;

        @ApiModelProperty(value = "可选项")
        private List<String> options;

        @ApiModelProperty(value = "true:全局属性,false:特殊属性")
        private Boolean global;
    }


}
